namespace C4F.DevKit.Bluetooth
{

    namespace FileTransferProfile
    {
        #region Using Directives
        using System;
        using System.Collections.Generic;
        using System.Text;
        using System.Runtime.Serialization;
        #endregion

        /// <summary>
        /// FTPException is a generic exception which will be raised when a
        /// file/folder operation fails. 
        /// </summary>
        [Serializable]
        public class FTPException : Exception
        {
            /// <summary>
            /// Initializes the Message property of the new instance to a 
            /// system-supplied message.
            /// </summary>
            public FTPException()
                : base()
            {
            }
            /// <summary>        
            /// Initializes an object of this class and sets the Message 
            /// property to the specified error message.
            /// </summary>
            /// <param name="message">The message that describes the error.
            /// </param>
            public FTPException(string message)
                : base(message)
            {
            }
            /// <summary>
            /// Initializes a new instance of the Exception class with a
            /// specified error message and a reference to the inner exception
            /// that is the cause of this exception.
            /// </summary>
            /// <param name="message">The message that describes the error.
            /// </param>
            /// <param name="innerException">The exception that is the cause of
            /// this exception.</param>
            public FTPException(string message, Exception innerException)
                : base(message, innerException)
            {
            }
            /// <summary>
            /// Initializes a new instance of this class with serialized data.
            /// </summary>
            /// <param name="info">The SerializationInfo that holds the serialized
            /// object data about the exception being thrown.</param>
            /// <param name="context">The StreamingContext that contains contextual
            /// information about the source or destination.</param>
            public FTPException(SerializationInfo info, StreamingContext context)
                : base(info, context)
            {
            }
        }

    }

}